{block admin_content}
<h1>Oddělení: {$department}</h1>
{form editDepartmentForm}<table><tr><th>{label name /}</th><td>{input name}{input send}</td></tr></table>{/form}
<h2>Dovednosti</h2>
<table width="100%">
	<thead>
		<tr><th>Název</th><th>Uživatelů</th><th width="20"><a n:href="addSkill, $id">Přidat</a></th></tr>
	</thead>
	<tbody>
		{foreach $skills as $skill}
		<tr>
			<td>{$skill[name]}</td>
			<td>{$skill->user_skill()->count()}</td>
			<td><a n:href="editSkill, $skill[id]"><img src="{$basePath}/images/edit.gif"></a> <a n:href="deleteSkill!, $skill[id]" onclick="return del();"><img src="{$basePath}/images/delete.gif"></a></td>
		</tr>
		{/foreach}
	</tbody>
</table>
<script type="text/javascript">
function del(){
	return confirm('Opravdu chcete smazat dovednost?');
}
</script>
{/block}